package com.javafish.webhello.service.impl;

import com.javafish.webhello.Bean.Media;
import com.javafish.webhello.mapper.MediaMapper;
import com.javafish.webhello.service.MediaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MediaServiceImpl implements MediaService {
    @Autowired
    private MediaMapper mediamapper;

    @Override
    public int saveMedia(Media media){
        return mediamapper.saveMedia(media);
    }
    @Override
    public List<Media> queryAll(){
        return mediamapper.queryAll();
    }
}